package com.caochenlei.flyweight;

public class WhiteChessPieces implements ChessPieces {
    private String color;   //内部状态：代表棋子颜色

    public WhiteChessPieces() {
        this.color = "白";
    }

    @Override
    public void downPieces(Point p) {
        System.out.println(color + "子落入横坐标" + p.getX() + "，纵坐标" + p.getY());
    }
}
